﻿@model Olemas.ViewModels.TestsViewModel
@foreach (var test in Model.Tests)
{
    var type = test.Test_Files.Count > 1 ? "mix" : test.Test_Files.First().Extension;

    <a href="@Url.Action("Test", "Details", new { Id = test.Id })" class="recentTestItem">
        <img src="~/Content/Site_Images/@String.Format("{0}.png", type)" alt="test"/>

        @Html.LabelFor(z => z.Tests, test.Name)
        @Html.LabelFor(z => z.Tests, test.Course.Name)
    </a>
}
<div class="loadNextItemsDiv" style="display: none">
    <a id="loadNextTests">@Model.PagesRemaining</a>
</div>

